Skip to content

plugins: rename bwatch output binary to cln-bwatch#9192

Merged
madelinevibes merged 1 commit into
ElementsProject:masterfrom
sangbida:sangbida/bwatch-plugin-fix
Jun 5, 2026
Merged

plugins: rename bwatch output binary to cln-bwatch#9192
madelinevibes merged 1 commit into
ElementsProject:masterfrom
sangbida:sangbida/bwatch-plugin-fix

Conversation

@sangbida
Copy link
Copy Markdown
Collaborator

@sangbida sangbida commented Jun 4, 2026

The bwatch plugin lived in plugins/bwatch/ and output its binary as plugins/bwatch/bwatch. This caused make install to install it flat as /bwatch, while lightningd expected it at /bwatch/bwatch, so plugin registration failed at startup with "failed to register plugin".

Fix by renaming the output to plugins/cln-bwatch, following the same convention as cln-renepay, cln-xpay and cln-askrene.

Changelog-Fixed: bwatch plugin failed to register on startup after make install

Fixes #9191

@sangbida sangbida requested a review from daywalker90 June 4, 2026 15:51
@sangbida
Copy link
Copy Markdown
Collaborator Author

sangbida commented Jun 4, 2026

I tried to reproduce the issue locally as well, before the fix:

(cln-meta-project) sangbida@mac lightning % /tmp/cln-test/usr/local/bin/lightningd --version
2026-06-04T15:58:06.985Z UNUSUAL plugin-manager: failed to register plugin /private/tmp/cln-test/usr/local/bin/../libexec/c-lightning/plugins/bwatch/bwatch
v26.06

After the fix:

(cln-meta-project) sangbida@mac lightning % /tmp/cln-test/usr/local/bin/lightningd --version
v26.06-4-g43ded1e

@madelinevibes madelinevibes added this to the v26.09 milestone Jun 4, 2026
@madelinevibes madelinevibes added 26.06.1 Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. labels Jun 4, 2026
Copy link
Copy Markdown
Collaborator

@daywalker90 daywalker90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 43ded1e

@vincenzopalazzo
Copy link
Copy Markdown
Collaborator

This fixed the issue #9193

The bwatch plugin lived in plugins/bwatch/ and output its binary as
plugins/bwatch/bwatch. This caused make install to install it flat as
<plugindir>/bwatch, while lightningd expected it at <plugindir>/bwatch/bwatch, so plugin registration failed at startup with "failed to register plugin".

Fix by renaming the output to plugins/cln-bwatch, following the same
convention as cln-renepay, cln-xpay and cln-askrene.

Changelog-Fixed: bwatch plugin failed to register on startup after make install
@madelinevibes madelinevibes force-pushed the sangbida/bwatch-plugin-fix branch from 43ded1e to 46e14c8 Compare June 5, 2026 10:00
@madelinevibes madelinevibes merged commit 1c346a5 into ElementsProject:master Jun 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.06 bug 26.06.1 Status::Ready for Review The work has been completed and is now awaiting evaluation or approval.

Projects

None yet

4 participants